<? require_once("sitemap.php"); ?>
<html>
	<title><? echo (":" . $HTTP_SERVER_VARS['REMOTE_USER'] . ": ". $Botname); ?>'s EL-BOT Advert Log</title>
<body>
	<h1><? echo ($Botname); ?>'s EL-BOT Advert Log</h1>
	<?
	$result = mysql_query("SELECT adverttext,adverttime FROM advertlog WHERE botid='$botid' ORDER BY id desc",$db);
	echo (mysql_error());
	?>
	<table border = '1'>
		<th>Advert</th><th>Date</th>
	<?
	while ($myrow = mysql_fetch_row($result)) {
	?><tr>
			<td><? echo $myrow[0]; ?>
			</td><td><? echo $myrow[1]; ?>
			</td>
		</tr>		
	<?
		}
	?>
	</table>
</body>
</html>
